package cn.fay.chapter11;

import java.util.HashMap;
import java.util.Map;
import java.util.PriorityQueue;

public class Test29 {

	//运行时会报错。因为没有实现比较器
	public static void main(String[] args) {
		PriorityQueue<simply> priorityQueue=new PriorityQueue<simply>();
		priorityQueue.offer(new simply());
		priorityQueue.offer(new simply());
		priorityQueue.offer(new simply());
		priorityQueue.offer(new simply());
		priorityQueue.offer(new simply());
		System.out.println(priorityQueue);
		
	}

}
class simply implements Comparable{

	@Override
	public int compareTo(Object o) {
		// TODO Auto-generated method stub
		return 0;
	}}